from graph import *
windowSize(500, 500)
x = int(input(''))
if x > 500:
    print()
else:
    y = int(input(''))
    if y > 500:
        print('')
    else:
        n = int(input(''))
        if x * n + 60 > 500 or y * n + 40 > 500 or n < 1:
            print('')
        else:
            penSize(1)
            penColor('Red')
            brushColor('Red')
            polygon([(x, y), (x + 10 * n, y), (x + 10 * n, y + 10 * n), (x + 20 * n, y + 10 * n), (x + 20 * n, y), (x + 30 * n, y), (x + 30 * n, y + 20 * n), (x, y + 20 * n), (x, y) ])
            run()


